package com.dcm.item.service;

import com.dcm.item.entity.SpecificationEntity;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * Classname: SpecService
 * @author mengxiangjian
 */
public interface SpecService {
    /**
     * findAll
     *
     * @return
     */
    List<SpecificationEntity> findAll();

    /**
     * find
     *
     * @param name
     * @return
     */
    SpecificationEntity find(String name);

    /**
     * add
     * @param specification
     */
    void add(SpecificationEntity specification);

    /**
     * update
     * @param tbspecification
     */
    void update(SpecificationEntity tbspecification);

    /**
     * delete
     * @param id
     */
    void delete(Long id);

    /**
     * 批删
     * @param ids
     */
    void deletes(List<Long> ids);

    /**
     * 分页
     * @param currentPage
     * @param pageSize
     * @return
     */
    PageInfo<SpecificationEntity> findPage(Integer currentPage, Integer pageSize);
}
